package com.av.android;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true) 
public class User {

	private int user_id;
	private String username;
	private Date created_on;
	private int isAdmin;
	private String email;
	private String password;
	private int score;
	private int no_wrong_reports;
	private int sum_report_rates;
	private int isActive;
	
	
	public User(){};
	
	public User(String u_name, int isA, String e_m, String pass)
	{
		username=u_name;
		isAdmin = isA;
		email = e_m;
		password = pass;
		
	}
	
	public User(int u_id, String u_name, Date c_on, int isA, String e_m, 
					String pass, int sc, int nwr, int srr, int iA)
	{
		user_id = u_id;
		username=u_name;
		created_on = c_on;
		isAdmin=isA;
		email=e_m;
		password=pass;
		score = sc;
		no_wrong_reports=nwr;
		sum_report_rates=srr;
		isActive=isA;
		
	}
	
		
	public void setAll(int u_id, String u_name, Date c_on, int isA, String e_m, 
			String pass, int sc, int nwr, int srr, int iA)
	{
		
		setUser_id(u_id);
		setUsername(u_name);
		setCreated_on(c_on);
		setIsAdmin(isA);
		setEmail(e_m);
		setPassword(pass);
		setScore(sc);
		setNo_wrong_reports(nwr);
		setSum_report_rates(srr);
		setIsActive(iA);
		
	}

	public int getUser_id() {
		return user_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Date getCreated_on() {
		return created_on;
	}

	public void setCreated_on(Date created_on) {
		this.created_on = created_on;
	}

	public int getIsAdmin() {
		return isAdmin;
	}

	public void setIsAdmin(int isAdmin) {
		this.isAdmin = isAdmin;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getNo_wrong_reports() {
		return no_wrong_reports;
	}

	public void setNo_wrong_reports(int no_wrong_reports) {
		this.no_wrong_reports = no_wrong_reports;
	}

	public int getSum_report_rates() {
		return sum_report_rates;
	}

	public void setSum_report_rates(int sum_report_rates) {
		this.sum_report_rates = sum_report_rates;
	}

	public int getIsActive() {
		return isActive;
	}

	public void setIsActive(int isActive) {
		this.isActive = isActive;
	}

	

}
